package com.ftg.learn.chapter08.homework01.homework03;

import java.util.Scanner;

/**
 * 测试
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/24 12:35
 */

public class Test1 {

    public static void main(String[] args) {
//        Scanner scanner=new Scanner(System.in);
//        System.out.println("输入英雄的名字");
//        String hero=scanner.next();
//        Hero hero1=new Hero("",100,1);
//        System.out.println("英雄"+ hero+"的生命值为："+ hero1.HealthValue+"等级为："+hero1.grade);
//        Hero hero2=new Hero("1");
//        System.out.println("英雄"+ hero+"是"+hero2.getType()+"生命值为："+hero2.getHealthValue());

        System.out.println("请输入英雄的名称");
        Scanner scanner = new Scanner(System.in);
        String name = scanner.next();

        Hero hero = new Hero(name,HeroTypeNew.type1);
    }
}
